<template>
  <el-input v-bind="$attrs" v-model="input" @input="test" />
</template>

<script setup>
import { ref, watch } from 'vue'
const props = defineProps(['modelValue'])
const input = ref('')
/* watch(props.modelValue, (new, old) => {
  console.log(new);
}) */

const test = (val) => {
  input.value = val.replace(/[^\d]/g, '')
}
</script>